<form class="layui-form close-dialog" style="padding:20px;" onsubmit="return false;" action="/system/api_admin/storage_edit_post" method="post">
    <if condition="$_GET['type'] eq 'local'">
        <div class="layui-form-item">
            <label class="layui-form-label">存储方式：</label>
            <div class="layui-input-block">
                <input type="radio" name="type" value="local" title="本地存储" checked>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态：</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="-1" title="关闭" <if condition="$config['CURRENT_METHOD'] neq 'local'">checked</if>>
    <input type="radio" name="status" value="1" title="开启" <if condition="$config['CURRENT_METHOD'] eq 'local'">checked</if>>
    </div>
    </div>
    </if>
    <if condition="$_GET['type'] eq 'qiniu'">
        <php>$qiniuConfig = $config['QINIU_CONFIG'];</php>
        <div class="layui-form-item">
            <label class="layui-form-label">存储方式：</label>
            <div class="layui-input-block">
                <input type="radio" name="type" value="qiniu" title="七牛云存储" checked>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">accessKey:</label>
            <div class="layui-input-block">
                <input type="text" name="QINIU_CONFIG[accessKey]" value="{$qiniuConfig['accessKey']}" required lay-verify="required" placeholder="请输入accessKey" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">secretKey:</label>
            <div class="layui-input-block">
                <input type="text" name="QINIU_CONFIG[secretKey]" value="{$qiniuConfig['secretKey']}" required lay-verify="required" placeholder="请输入secretKey" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">域名：</label>
            <div class="layui-input-block">
                <input type="text" name="QINIU_CONFIG[domain]" value="{$qiniuConfig['domain']}" required lay-verify="required" placeholder="请输入域名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">空间名称：</label>
            <div class="layui-input-block">
                <input type="text" name="QINIU_CONFIG[bucket]" value="{$qiniuConfig['bucket']}" required lay-verify="required" placeholder="请输入空间名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态：</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="-1" title="关闭" <if condition="$config['CURRENT_METHOD'] neq 'qiniu'">checked</if>>
    <input type="radio" name="status" value="1" title="开启" <if condition="$config['CURRENT_METHOD'] eq 'qiniu'">checked</if>>
    </div>
    </div>
    </if>
    <div class="layui-form-item xy-bottom">
        <button class="layui-btn" lay-submit="" lay-filter="*">确定</button>
    </div>
</form>